package lab02.test15;

public class Graduate implements StudentInterface,TeacherInterface {
    String name;
    String sex;
    int age;
    double fee;
    double pay;

    Graduate(){}

    Graduate(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    @Override
    public void setFee() {
        this.fee = fee;
    }

    @Override
    public double getFee() {
        return 0;
    }

    @Override
    public void setPay() {
        this.pay = pay;
    }

    @Override
    public double getPay() {
        return 0;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+
               "性别："+sex+"\n"+
                "年龄："+age+"\n";
    }
}
